package com.qf.feigns;

import com.qf.pojo.R;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class OrderServiceApiFallbackFactory implements FallbackFactory<OrderServiceApi> {
    @Override
    public OrderServiceApi create(Throwable cause) {
        cause.printStackTrace();

        return id-> R.error().putMsg("feign降级处理....");
    }
}
